package com.igeekhome.mapper;

import com.igeekhome.dto.SectionDestDto;
import com.igeekhome.pojo.DSpotDestination;
import com.igeekhome.pojo.DSpotDestinationExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Romeo
 */
public interface DSpotDestinationMapper {
    int countByExample(DSpotDestinationExample example);

    int deleteByExample(DSpotDestinationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DSpotDestination record);

    int insertSelective(DSpotDestination record);

    List<DSpotDestination> selectByExample(DSpotDestinationExample example);

    DSpotDestination selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DSpotDestination record, @Param("example") DSpotDestinationExample example);

    int updateByExample(@Param("record") DSpotDestination record, @Param("example") DSpotDestinationExample example);

    int updateByPrimaryKeySelective(DSpotDestination record);

    int updateByPrimaryKey(DSpotDestination record);

    /**
     * 批量删除
     * @param idsStr id字符串
     * @return int
     */
    int deleteByIdStr(String idsStr);

    /**
     * 查询目的地的名字和编号
     * @param strId
     * @return
     */
    List<SectionDestDto> selectDestStrId(String strId);
}